{% if page_obj.has_previous %}
    <a href="{% url 'terms-by-page' page_obj.previous_page_number %}">
        Previous Page
    </a>
{% endif%}
{% if page_obj.has_next %}
    <a href="{% url 'terms-by-page' page_obj.next_page_number %}">
        Next Page
    </a>
{% endif%}
